package model;

/**
 * class DeleteFolderRequest - for deleting a folder
 */
public class DeleteFolderRequest extends Request {
	String userID;
	String folderName;
	
	/**
	 * constructor
	 * @param userID - the user name
	 * @param folderName - the folder name
	 */
	public DeleteFolderRequest(String userID,String folderName)
	{
		super();
		this.userID = userID;
		this.folderName = folderName;
	}

	@Override
	/**
	 * delete the user's folder 
	 */
	public Integer call() throws Exception {
		// TODO Auto-generated method stub
		System.out.println("delete folder "+userID + " "+ folderName);
		DbAdapter.getInstance().deleteDbFolder(userID,folderName);
		return 1;
	}

}
